<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ include file="../common.jsp" %>
<%
SessionUser sessionUser = (SessionUser)LoginContext.getSessionValueByLogin(request);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>BAMS后台</title>
		<link rel='stylesheet' type='text/css' href='<%=contextPath%>/js/tabs/tabs.css' />
		<script type="text/javascript" src="<%=contextPath%>/js/tabs/tabs.js"></script>
		<script type="text/javascript">
		window.onload = function(){
			MDIOpen("<%=contextPath %>/erp/system_manger/sys_method.jsp");
		}
		</script>
	</head>

	<body>
		
		<table width="100%" cellpadding="0" cellspacing="0" border="0" height="100%">
		<tr>
		<td height="75" style="background:url('<%=request.getContextPath()%>/images/top-5.png') repeat-x;">
		
			<!-- 首页顶部开始 -->
			<table width="100%" cellpadding="0" cellspacing="0" border="0" height="100%">
			<tr>
			<td style="padding-left:5px;padding-right:5px">
				<img border="0" alt="公司logo" src="<%=contextPath %>/images/syslogin.png" style="height: 48px;width: auto">
			</td>
			<td valign="top" style="padding-right: 5px" width="100%" align="right">
				<table cellpadding="0" cellspacing="0" border="0">
					<tr>
					<td align="right" valign="middle" height="21" style="background: url('<%=contextPath%>/images/wpa_left.png')  no-repeat left center;padding-left:10px" >
						<div style="padding-right: 10px;margin-top: 10px; width:300px;">
						<span class="index_msg">欢迎您：<%=sessionUser.getEmployeeName() %></span>&nbsp;&nbsp;
						<span class="index_msg">[ 部门:<%=sessionUser.getEmployeeDeptName() %></span>&nbsp;&nbsp;
						<span class="index_msg">岗位:<%=sessionUser.getMainPost() == null ? "管理员" : sessionUser.getMainPost().getHrmPostName() %> ]</span>
						</div>
					</td>
					<td valign="middle" width="10" height="21" style="background: url('<%=contextPath%>/images/wpa_right.png')  no-repeat right center;">
					</td>
					</tr>
				</table>
			</td>
			</tr>
			<tr>
			<td colspan="3" height="27">
				<table width="100%" cellpadding="0" cellspacing="0" border="0" style="padding-right:5px;">
					<tr>
						<td width="190">
							
						</td>
						<td valign="top">
				            <TABLE style="WIDTH: 100%; TABLE-LAYOUT: fixed;" cellSpacing="0" border="0" cellPadding="0">
				              <TR>
				                <TD style="WIDTH: 1px"></TD>
				                <TD id=tab_left class=pre><A class=hidden title=向前 
				                  onclick=onLefttab(); href="javascript:void(0);">向前</A></TD>
				                <TD><IFRAME frameSpacing=0 marginHeight=0 id="tabFrame"
				                  src="<%=request.getContextPath() %>/js/tabs/systabs.html" frameBorder="0" width="100%" height="27"
				                  allowTransparency name=tabs marginWidth=0 
				                  scrolling=no></IFRAME></TD>
				                <TD id=tab_right class=next><A class=hidden title=向后 
				                  onclick=onRighttab(); href="javascript:void(0);">向后</A></TD>
				              </TR>
					        </TABLE>
						</td>
						
						<td width="380" valign="top" align="right">
							<iframe src="<%=request.getContextPath() %>/projectTopMenu.jsp?mid=<%=ConstWords.getProjectCode() %>" id="topfrm"
								 frameborder="0" height="25" scrolling="no" allowTransparency="true" marginheight="0" width="100%">
							</iframe>
						</td>
					</tr>
				</table>
			</td>
			</tr>
			</table>
			<!-- 首页顶部结束 -->
		</td>
		</tr>
		<tr>
			<td>
			<!-- 首页中间开始 -->
			<table width="100%" cellpadding="0" cellspacing="0" border="0" height="100%">
				<tr>
					<td id="split_l" style="width:200px;">
						<div class="div_title">功能菜单</div>
						<div class="div_content">
						<style>
						.webfx-tree-item a{
							font-family:微软雅黑;
							font-size:14px;
							letter-spacing:0.5px;
						}
						</style>
						
						<link type='text/css' rel='stylesheet' href='<%=contextPath%>/css/xtree.css' />
						<script type='text/javascript' src='<%=contextPath%>/js/treeJs/xtree.js' charset='UTF-8'></script>
						<script type='text/javascript' src='<%=contextPath%>/js/treeJs/xloadtree.js' charset='UTF-8'></script>
						<script type='text/javascript' src='<%=contextPath%>/js/treeJs/xmlextras.js' charset='UTF-8'></script>
						<script type='text/javascript'>webFXTreeConfig.setImagePath('<%=contextPath%>/js/treeJs/images/default/');</script>
						<script type="text/javascript">
							function treeclick(url){
								openMDITab(url);
							}
							
							//自动展开功能菜单
							function autoExpand(){
								$(".webfx-tree-container .webfx-tree-item").each(function(){
									webFXTreeHandler.toggle(this);
								});
							}
						
							var tree = new WebFXTree("BAMS");
							tree.add(new WebFXLoadTreeItem("系统综合管理", "index_menu.xml"));
							document.write(tree);
							setTimeout(function(){autoExpand();},500);
						</script>
						<style>
						.webfx-tree-item a{
							font-family:微软雅黑;
							font-size:14px;
							letter-spacing:0.5px;
						}
						</style>
						</div>
					</td>
					<td>
				        <iframe height="100%" width="100%" 
				            marginHeight=0 frameBorder=0 
				            name="mainframe" id="mainframe" marginWidth=0 scrolling=no></iframe>
					</td>
				</tr>
			</table>
			<!-- 首页中间结束 -->
			</td>
		</tr>
		
		<tr>
		<td height="30" style="background:#054376;padding-left:10px;">
			<font color="#ffffff">
			(c)2008-2014 Eazytec BAMS Version 1.0
			</font>
		</td>
		</tr>
		</table>
	</body>
</html>
